<template>
    <page-wrap :show-top="false" :title="title" bgColor="#fff" back hideTab>
        <view class="wrapper">
            <web-view :webview-styles="webviewStyles" :src="srcWebView"></web-view>
        </view>
    </page-wrap>
</template>
<script>
export default {
    data() {
        return {
            webviewStyles: {
                progress: {
                    color: '#FF3333'
                },
                // srcWebView: '',
                srcWebView:"https://3g.crm1001.com/v2/#/disc/login?person_id=12345678",
                title: '职业测评',
            },
        }
    },
    onLoad(option) {
        // this.srcWebView = decodeURIComponent(option.srcWebView).replace("http://", "https://");
        // this.srcWebView = "https://m.yl1001.com/community/web/v1/html/consult/index.html#/shortvideo?sharePersonId=";
        // this.srcWebView = "https://3g.crm1001.com/v2/#/disc/login?person_id=12345678";
        let url ="https://3g.crm1001.com/v2/#/disc/question?person_id=24384836";
        let encodeUrl = encodeURIComponent(url);
        let decodeUrl = decodeURIComponent(encodeURIComponent);
        // this.srcWebView = decodeUrl;
        // this.srcWebView = "https://3g.crm1001.com/v2/#/disc/question?person_id=12345678";
        // this.srcWebView = encodeURIComponent("https://m.yl1001.com/community/web/v1/html/consult/index.html#/shortvideo");


        // this.srcWebView = "https://www.baidu.com";
        console.log("onLoad", this.srcWebView);
    },
    created() {
        //console.log("created",this.srcWebView);
    },
    mounted() {
        //console.log("mounted",this.srcWebView);
    }
}
</script>
<style lang="scss" scoped>
.wrapper {
    min-height: 100vh;
}
</style>